package p4;

/**
 * @author krystal
 * @date 2022/11/10 9:28
 */
public class Demo6 {
    public static void main(String[] args) {
        System.out.println(fib(7));  //13
    }

    public static int fib(int n){
        if (n == 1 || n == 2){
            return 1;
        }
        return fib(n-1) + fib(n-2);
    }
}
